package com.tfjybj.itoo.teach.provider.facade;

import org.apache.dubbo.config.annotation.Service;
import com.github.pagehelper.PageInfo;
import com.tfjybj.itoo.teach.FacadeApi.TeachClassApi;
import com.tfjybj.itoo.teach.entity.TeachClassEntity;
import com.tfjybj.itoo.teach.provider.service.TeachClassService;

import javax.annotation.Resource;
import java.util.List;

@Service
@org.springframework.stereotype.Service
public class TeachClassFacade implements TeachClassApi {

    @Resource
    private TeachClassService teachClassService;

    @Override
    public boolean save(TeachClassEntity teachClassEntity) {
        return teachClassService.save(teachClassEntity);
    }

    @Override
    public boolean removeById(String id) {
        return teachClassService.removeById(id);
    }

    @Override
    public boolean removeByIds(List<String> ids) {
        return teachClassService.removeByIds(ids);
    }

    @Override
    public boolean updateById(TeachClassEntity teachClassEntity) {
        return teachClassService.updateById(teachClassEntity);
    }

    @Override
    public TeachClassEntity getById(String id) {
        return teachClassService.getById(id);
    }

    @Override
    public PageInfo<TeachClassEntity> queryPageAll(Integer pageNo, Integer pageSize) {
        return teachClassService.queryPageAll(pageNo, pageSize);
    }
}
